package com.starblink.mine.personhome.ui

import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import com.apollographql.apollo3.cache.normalized.FetchPolicy
import com.starblink.android.basic.base.BaseViewModel
import com.starblink.android.basic.network.base.SkGqlClient
import com.starblink.android.basic.user.UserDataCenter
import com.starblink.android.basic.modules.mine.MineManager
import com.starblink.rocketreserver.FetchAccountDataCountByIdQuery
import com.starblink.rocketreserver.FetchAccountDataCountByIdQuery.FetchAccountDataCountById
import com.starblink.rocketreserver.FetchAccountInfoByIdQuery
import com.starblink.rocketreserver.fragment.AccountF
import kotlinx.coroutines.async
import kotlinx.coroutines.launch

/**
 * PersonHomeActivity和其子Fragment之间的共享VM
 */
class SharedViewModel : BaseViewModel() {
    // 用户基本数据
    val userInfoLiveData: MutableLiveData<AccountF> =
        MutableLiveData()

    // 用户数量数据（Wishlist子页使用）
    val userCountDataLiveData: MutableLiveData<FetchAccountDataCountById> =
        MutableLiveData()
}